export default {
	namespaced: true,
	
	state: () => ({
		user: JSON.parse(uni.getStorageSync('user') || '{}'),
		
		readdress: null,
		
		user_id: uni.getStorageSync('user_id') || '',

	}),
	
	mutations: {
		updateUSer(state, info) {
			state.user = info
			uni.setStorageSync('user', JSON.stringify(state.user))
		},

		updateReaddress(state, readdress) {
			state.readdress = readdress
		},
		
		updatemy(state, data) {
			state.user_id = data.openid
			uni.setStorageSync('user_id', state.user_id)
		},
		
		
	},
	
	getters: {

	}
	
}